package model

import "time"

type Agent struct {
	ID              int64     `gorm:"primaryKey"`
	ConnIP          string    `gorm:"column:conn_ip"`
	HostIP          string    `gorm:"column:host_ip"`
	HostName        string    `gorm:"column:host_name"`
	OSType          string    `gorm:"column:os_type"`
	OSArch          string    `gorm:"column:os_arch"`
	OSVersion       string    `gorm:"column:os_version"`
	InsDt           time.Time `gorm:"column:ins_dt"`
	UpdDt           time.Time `gorm:"column:upd_dt"`
	LastHeartbeatDt time.Time `gorm:"column:last_heartbeat_dt"`
	IsDel           int8      `gorm:"column:is_del"`
}

func (Agent) TableName() string {
	return "tb_agent"
}
